//
//  UIView+FacMethods.m
//  app
//
//  Created by luckyRoy on 2017/5/11.
//  Copyright © 2017年 NAICAI LI. All rights reserved.
//

#import "UIView+FacMethods.h"
#import <objc/runtime.h>

static const void *clickBlockKey = &clickBlockKey;

@implementation UIView (FacMethods)

- (void)setFac_clickBlock:(LBFacBaseViewButtonClick)fac_clickBlock
{
    objc_setAssociatedObject(self, clickBlockKey, fac_clickBlock, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (LBFacBaseViewButtonClick)fac_clickBlock
{
    return objc_getAssociatedObject(self, clickBlockKey);
}

- (void)fac_updateUIViewByModel:(id)viewModel
{
    
}

+ (CGFloat)fac_heightForViewByModel:(id)viewModel
{
    return UITableViewAutomaticDimension;
}

+ (BOOL)fac_isNibView
{
    return NO;
}

@end
